/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

@import "~antd/lib/style/themes/default.less";

.header {
  height: 64px;
  padding: 0 12px 0 0;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  position: relative;
  display: flex;
  justify-content: space-between;
}

:global {
  .ant-layout {
    min-height: 100vh;
    overflow-x: hidden;
  }
}

.logo {
  height: 64px;
  line-height: 58px;
  vertical-align: top;
  display: inline-block;
  padding: 0 0 0 24px;
  cursor: pointer;
  font-size: 20px;
  img {
    display: inline-block;
    vertical-align: middle;
  }
}

.menu {
  :global(.anticon) {
    margin-right: 8px;
    // position: absolute;
    // left: 0;
  }
}

i.trigger {
  font-size: 20px;
  height: 64px;
  cursor: pointer;
  transition: all 0.3s, padding 0s;
  padding: 22px 24px;
  &:hover {
    background: @primary-1;
  }
}

.advertise {
  top: 0;
  flex: 1;
  margin-left: 10px;
}

.right {
  height: 100%;
  display: flex;
  align-items: center;
  .action {
    cursor: pointer;
    padding: 0 12px;
    display: inline-block;
    transition: all 0.3s;
    height: 100%;
    > i {
      font-size: 16px;
      vertical-align: middle;
      color: @text-color;
    }
    &:hover,
    &:global(.ant-popover-open) {
      background: @primary-1;
    }
  }
  .search {
    padding: 0;
    margin: 0 12px;
    &:hover {
      background: transparent;
    }
  }
  .account {
    .avatar {
      margin: 20px 8px 20px 0;
      color: @primary-color;
      background: rgba(255, 255, 255, 0.85);
      vertical-align: middle;
    }
  }
}

.name {
  display: flex;
  white-space:nowrap;
}

@media only screen and (max-width: @screen-xl) {
  .header {
    :global(.ant-divider-vertical) {
      vertical-align: unset;
    }
    .logo {
      padding-right: 12px;
      position: relative;
      z-index: 20;
      background-color: #fff;
    }
    .right {
      right: 12px;
      top: 0;
      background: #fff;
      flex: 1;
      justify-content: flex-end;
      position: absolute;
      .account {
        .avatar {
          margin-right: 0;
        }
      }
    }
  }
}
@media only screen and (max-width: @screen-md) {
  .header {
    i.trigger {
      left: 68px;
      padding: 22px 12px;
      position: absolute;
      z-index: 20;
      background-color: #fff;
    }
  }
  .advertise {
    margin-left: 50px;
  }
}

.excel {
  display: inline-block;
  height: 100%;
  padding: 0 10px;
}
